home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
program
/
441
/
dlibs12
/
lseek.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-11-23
|
286b
|
22 lines
#include <stdio.h>
#include <errno.h>
long lseek(h, where, how)
int h;
long where;
int how;
{
register long rv;
rv = gemdos(0x42, where, h, how);
if(rv < 0)
errno = ((int) rv);
return(rv);
}
long tell(h)
int h;
{
return(lseek(h, 0L, SEEK_CUR));
}